
<header  class="bar bar-header  bar-stable bar-mycolor " >
		<a class="button button-clear icon ion-ios-arrow-left" href="#/tab/main" ></a>
			<h1 class="title ">商品列表</h1>
		<button class="button button-clear icon ion-ios-search" ng-click="last_goto_pick()"></button>
</header>

<header  class="bar bar-subheader  bar-stable bar-mycolor " >
	<div class="row row-center bk-white row-margin">
		<div class="content-center">
			<button class="bt-style2 " ng-class="{'bt-active2':last_bt}" ng-click="loadLastProduct()">最新</button>
			<button class="bt-style2"  ng-class="{'bt-active2':hot_bt}" ng-click="loadHotProduct()">最热</button>
		</div>
	</div>
</header>


<ion-content class="has-subheader bk-gray" data-ng-init="loadLastProduct()">
	<ion-refresher
	    pulling-text="下拉刷新..."
	    on-refresh="updateProduct()">
	</ion-refresher>

	<div class="myrow" id="productList" ng-repeat="product in product_data">
		<div class="last-product-item" ng-click="goto_product_info(product.id)">
			<img ng-src="{{product.image}}"/>
			<div class="last-product-desc">
				<div class="last-product-title">  
					<span class="last-title-label">
						{{product.name}}
					</span> 
					<span class="last-title-price float-right">
						¥{{product.sale_price}}
					</span>
				</div>
				<div class="last-product-info">
					<span class="last-product-comment float-left">
						<a class="subdued icon ion-chatbox-working"><span class="padding-label">{{product.comment_count}}</span></a>
					</span>
					<span class="padding-label">
						<a class="subdued icon ion-ios-heart-outline"><span class="padding-label">{{product.follow_count}}</span></a>
					</span>
				</div>
			</div>
		</div>
	</div>
	
	<!-- ion-infinite-scroll 上拉加载数据指令 distance默认1% nf-if的值为false时，就禁止执行on-infinite  -->
    <ion-infinite-scroll  ng-if="!isStop_scroll" on-infinite="scroll_load_product()" distance="1%" ></ion-infinite-scroll>
</ion-content >